package com.icexxx.ice_browser;

import java.awt.Dimension;

import javax.swing.JTextArea;
import javax.swing.JTextField;

public class EditManager {

    public static JTextField createRequestAddressEditText() {
        JTextField editText = new JTextField("", 100);// 标准
        Dimension preferredSize = new Dimension(10, 36);
        editText.setPreferredSize(preferredSize);
        Context.put("requestAddressEditText", editText);
        return editText;
    }

    public static JTextArea createParamTextArea() {
        JTextArea textArea = new JTextArea();
        textArea.setText("zzzzzzzzzzzz\r\nsdsadsada\nsdfdfdsfds");
        Dimension preferredSize = new Dimension(1265, 169);// 标准
        textArea.setMinimumSize(preferredSize);
        textArea.setPreferredSize(preferredSize);
        textArea.setSize(200, 150);
        Context.put("paramTextArea", textArea);
        return textArea;
    }

    public static JTextArea createCenterTextArea() {
        JTextArea textArea = new JTextArea();
        textArea.setText("nihsocdsfsdfsdfdf\r\nsdsadsada\nsdfdfdsfds");
        Dimension preferredSize = new Dimension(1260, 608);// 标准
        textArea.setMinimumSize(preferredSize);
        textArea.setPreferredSize(preferredSize);
        Context.put("centerTextArea", textArea);
        return textArea;
    }

}
